Conversation
Gulp was used because it was necessary to compile a go binary a long time ago. Now use tsc which also solves some problems now that npkill is exported. In the future try another transpiler.
Member
Author
Of course any comments or feedback on how this should be is more than welcome! |
This was referenced Jul 26, 2025
Closed
This for upcoming changes
Need to fix some more test. Skipped for now
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WIP.
This ambitious refactor aims to decouple the CLI from the core logic of npkill, exposing the core through a simple and clean interface that can be imported and reused in other projects.
How does this affect regular users?
It doesn't. Npkill will continue to work as expected (except for a few internal improvements under the hood).
The situation before
Previously, there was no separation. Npkill was a monolith: both the search engine and the TUI were tightly coupled as a single unit.
The situation now
Internally, the project has been split into two packages:
coreandcli.The CLI package remains private and internal to npkill, since there's no practical reason to reuse that part outside the main project.
Why?
This API (and a lot of other features) will be released together with the arrival of v1.0.